Added test_create.py, a test script for create.py. This contains a unit test
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sun, 30 Oct 2005 12:42:30 +0000 (13:42 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sun, 30 Oct 2005 12:42:30 +0000 (13:42 +0100)
commit466acdeb476a3651aed00ffa1bd83834081e3333
tree82f7130a9d930d47ce513b2d7b350a65eb36d11d
parent480d7883b52b8ac9f63c933145a146697137f0e5
Added test_create.py, a test script for create.py.  This contains a unit test
for the command line parsing code in xm create.  To make it easier to test,
create.py has changed in structure around the main(argv) function, adding a new
parseCommandLine function.

Remove a large number of useless parameters, where the opts structure was being
passed all over the place, just to eventually log through it.  Instead two
methods -- err and warn -- have been broken out from the Opts class, and there
is now no need to pass the opts value everywhere.

Change the parsing inside make_config to remove lots of cut-and-pasted cruft.

Change the documentation to the vif command to indicate that the bridge can be
auto-detected.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xm/create.py
tools/python/xen/xm/tests/__init__.py [new file with mode: 0644]
tools/python/xen/xm/tests/test_create.py [new file with mode: 0644]